package org.voyager.service.front.fallback;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;
import org.voyager.common.beans.JsonResult;
import org.voyager.service.front.VO.AdResourceVo;
import org.voyager.service.front.subsystem.AdClient;

@Component
public class AdClientFallBack implements AdClient {

	private final Logger logger = LoggerFactory.getLogger(AdClientFallBack.class);
	
	@Override
	public JsonResult queryAds(AdResourceVo adResourceVo) {
		logger.error("断路器：广告查询服务异常");
		return JsonResult.error("广告查询服务异常");
	}

}
